<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@page session="false"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String timeStamp = String.valueOf(new java.util.Date().getTime());
String msg=request.getParameter("msg");
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>测试用一个账号多个用户登陆问题</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="js/jquery-1.10.2.js"></script>
	<script type="text/javascript">
	$(function(){
		var msg='<%=msg%>';
		if(msg!="null"){
			var newRow = "<tr style=\"color:red;\" ><td colspan=\"2\">"+msg+"</td></tr>";
            $("#f1 tr:last").after(newRow);

		}
	})
	
	
	</script>

  </head>
  
  <body>
    <form action="/loginServlet" method="post">
    <input type="hidden" name="timeStamp" value="<%=timeStamp %>"/>
    <table id="f1">
    <tr><td>用户名：</td><td><input type="text" name="username"/></td></tr>
    <tr><td>密码：</td><td><input type="password" name="password"/></td></tr>
     <tr><td>验证码：</td><td><img src="randomCode.jsp"/><input type="text" name="random" size="2"/></td></tr>
    <tr><td colspan="2"><input type="submit" value="提交"/></td></tr>
    </table>
    </form>
  </body>
</html>
